package cn.iocoder.yudao.module.wms.controller.admin.warehouse.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 仓库 库位树形结构 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WarehouseTreeRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18777")
    @ExcelProperty("序号")
    private Long id;

    @Schema(description = "仓库名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("仓库名称")
    private String name;

    @Schema(description = "库位集合", requiredMode = Schema.RequiredMode.REQUIRED, example = "库位集合")
    @ExcelProperty("库位集合")
    private List<Position> children;

    @Data
    public class Position {

        @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18777")
        @ExcelProperty("序号")
        private Long id;

        @Schema(description = "仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "18777")
        @ExcelProperty("仓库")
        private Long warehouseId;

        @Schema(description = "库位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
        @ExcelProperty("库位名称")
        private String name;
    }

}